# 遍历所有键值对
# 遍历字典中所有建
# 按特定顺序遍历字典中的所有键
# 字典中存储列表 - 2

favorite_languages = {
    'jen': 'python',
    'sarah': 'c',
    'edward': 'ruby',
    'phil': 'python',
    }

friends = ['phil', 'sarah']
# 循环建
for name in sorted(favorite_languages.keys()):
    print(name.title())
    
    if name in friends:
        language = favorite_languages[name].title()
        print(f"\t{name.title()}, I see you love {language}!")

'''
Jen
Sarah
        Sarah, I see you love C!
Edward
Phil
        Phil, I see you love Python!
'''